import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner qq=new Scanner(System.in);
        BankAccount qian=new BankAccount();
        qian.balance=qq.nextInt();
        int w=qq.nextInt();
        int ww=qq.nextInt();
        System.out.println(qian.balance);
        System.out.println(qian.withdraw(w));
        System.out.println(qian.deposit(ww));


    }
}
 class  Student{
    private int id;
    private String name;
    private char sex;

     public Student() {
     }

     public Student(int id, String name, char sex) {
         this.id = id;
         this.name = name;
         this.sex = sex;
     }

     void display(){

    }
 }
 class Circle{
    double r;

     public Circle(double r) {
         this.r = r;
     }
     double area()throws CircleException{
         if(r>=0){
             return 3.14*r*r;
         }else {
              throw  new CircleException(r);
         }
     }
 }
 class CircleException extends Exception{
double r;

     public CircleException(double r) {
         this.r = r;
     }
     void  print(){
         System.out.println("圆半径为"+this.r+"不合理");
     }
 }
 class  BankAccount{
    int balance;

     public BankAccount() {
         this.balance = 0;
     }

     public BankAccount(int balance) {
         this.balance = balance;
     }
     int getBalance(){
         return balance;
     }
     int withdraw(int amount){
if(balance>=amount){
    balance-=amount;
    return balance;
}
return -1;
     }
    int deposit(int amount){
        return balance+=amount;
     }
 }